package com.shmilyou.dissertationmanagement.biz.aop;
/* Created with 岂止是一丝涟漪     530060499@qq.com    2019/3/15 */

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class SaveAndUpdateAndDeleteAspect {
    private final static Logger log = LoggerFactory.getLogger(SaveAndUpdateAndDeleteAspect.class);

    @Before(value = "execution(* com.shmilyou.dissertationmanagement.biz..*.*save*(..))")
    public void beforeSave() {

    }

    @Before(value = "execution(* com.shmilyou.dissertationmanagement.biz..*.*update*(..))")
    public void beforeUpdate() {

    }

    @Before(value = "execution(* com.shmilyou.dissertationmanagement.biz..*.*delete*(..))")
    public void beforeDelete() {
        log.info(" before delete");
    }
}
